package ms.maplestory.boot.enums.login;

/**
 * 登录操作码
 */
public enum LoginType {

    Deleted(2), // id has been deleted
    Blocked(3), // ID deleted or blocked
    IncorrectPassword(4), // Incorrect password
    NotRegistered(5), // Not a registered id
    SystemError(6), // System error
    AlreadyLoggedIn(7), // Already logged in
    NotConnectableWorld(8), // System error
    Unknown(9), // System error
    ManyConnections(10), // Cannot process so many connections
    Only(11), // Only users older than 20 can use this channel
    Success(12), // login
    ImpossibleIP(13), // Unable to log on as master at this ip
    WrongGateway(14), // Wrong gateway or personal info and weird korean button
    Button(15), // Processing request with that korean button!
    VerifyAccount(16), // Please verify your account through email...
    WrongInfo(17), // Wrong gateway or personal info
    VerifyEmail(21), // Please verify your account through email...
    LicenseAgreement(23), // License agreement
    Notice(25), // Maple Europe notice
    TrialVersions(27), // Some weird full client notice, probably for trial versions
    IpBlocked(32), // IP blocked
    ChangePassword(84); // please revisit website for pass change --> 0x07 recv with response 00/01

    private byte opcode;

    LoginType(int opcode) {
        this.opcode = (byte) opcode;
    }

    public byte getOpcode() {
        return opcode;
    }
}
